package com.qdlc.p2p.quartz.job;


import javax.annotation.Resource;

import com.qdlc.p2p.biz.service.AccountRechargeService;
import com.qdlc.p2p.dal.model.AccountRechargeModel;
import com.qdlc.p2p.quartz.AbstractJob;

public class UpdateRechargeStatus extends AbstractJob {

    @Resource
    private AccountRechargeService accountRechargeService;

    @Override
    protected void process() {
        // 1天内 状态未被更新 说明充值失败
        int interval = 24 * 3600 * 1000;
        accountRechargeService.updateRechargeStatus(interval, AccountRechargeModel.RECHARGE_FAIL);
    }
}
